package com.account.book.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@ApiModel(value = "修改用户昵称，头像")
public class UpdateUserInfo {
    @ApiModelProperty("用户在用户表中唯一标识")
    @NotNull(message = "用户在用户表中唯一标识不能为空")
    private String id;

    @ApiModelProperty("用户在当前小程序的唯一标识")
    @NotNull(message = "用户在当前小程序的唯一标识不能为空")
    private String openId;

    @ApiModelProperty("头像地址")
    private String avatarUrl;

    @ApiModelProperty("用户昵称")
    private String nickName;
}
